package com.vhall.component.entity.account.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: rui.zhou
 * @date 2022/2/25 14:34
 */
@Data
public class AssistantLoginVO implements Serializable {

    @NotBlank(message = "phone不能为空")
//    @Pattern(regexp = "^1[3-9]{1}\\d{9}$", message = "手机号格式有误")
    private String phone;

//    @NotNull(message = "code不能为空")
    private Integer code;

    @NotBlank(message = "nick_name不能为空")
    @ParamName("nick_name")
    private String nickname;


    @NotBlank(message = "room_id不能为空")
    @ParamName(value = "room_id")
    private String roomId;

    @NotBlank(message = "口令不能为空")
    private String password;

    private String from;


    @ParamName("login_type")
    private Integer loginType;
}
